package com.shitu.soulemo.rn;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

import com.alibaba.fastjson.JSON;
import com.shitu.base.net.model.Tabs;
import com.shitu.base.rn.BaseRNActivity;
import com.shitu.soulemo.utils.AccountHelper;

public class RNPayActivity extends BaseRNActivity {
    public static void start(Activity activity, long id, Tabs tab) {
        Intent intent = new Intent(activity, RNPayActivity.class);
        Bundle bundle = new Bundle();
        bundle.putBundle("base", RNHelper.getBaseBundle(AccountHelper.getUser()));
        bundle.putString("pageName", "Pay");
        bundle.putString("id", String.valueOf(id));
        bundle.putString("detail", JSON.toJSONString(tab));
        intent.putExtra("info", bundle);
        activity.startActivity(intent);
    }
}
